from dependencies.ip2country import IP2Country

name="modCountry"
info="Ip lookup Module"
def do(param):
    i = IP2Country()
    try:
        i.load()
        code,country = i.lookup(param)
        print code , country
        return country
    except:
        return "error"